public class ForLoopDemo3 {
    public static void main(String[] args){
        int[] clubCounts = {25,32,18,0,22};
        String[] clubNames={"编辑社","动漫社","志愿者社","无效社团","音乐社"};
        System.out.println("报名人数>=20的社团：");
        for(int i=0;i<clubCounts.length;i++){
            if(clubCounts[i] == 0){
                System.out.println("遇到无效社团，停止统计");
                break;
            }
        if(clubCounts[i] <20){
            continue;
        }
        System.out.println(clubNames[i]+":"+clubCounts[i]+"人");
    }
  }
}
